home *** CD-ROM | disk | FTP | other *** search
- # Login.cmd for ICSI Internet Connect Services
- #
- # set up some strings for dialling up
- #
- if ![load $number]
- if [query $number "Enter your dial up phone number"]
- save $number
- end
- end
- if ![load $username]
- if [username "Enter your login username"]
- save $username
- end
- end
- if ![load $password]
- if [password "Enter your login password"]
- save $password
- end
- end
- $modemsetup = "&cl"
- $prompt = "]"
- $userprompt = "ogin:"
- $passprompt = "assword:"
- $slipcmd = "slip"
- $addrtarg = ") to "
- $pppcmd = "ppp"
-
- %attempts = 10
- #
- #
- #----------------------------------------------------------
- #
- # initialize modem
- #
- output "atz"\13
- if ! [input 10 OK\n]
- display "Modem is not responding"\n
- abort
- end
- #
- # setup our modem commands
- #
- output "at"$modemsetup\13
- input 10 OK\n
- #
- #
- output "atdt"$number\13
- #
- # wait for the username prompt
- #
- input 30 login:
- output $username\13
- #
- # and the password
- #
- input 30 assword:
- output $password\13
- address 30
-